import { createAPI, createFormAPI } from '@/utils/request'

export const insertPigPurchaseRecords = data => createFormAPI('/admin/pigPurchaseRecords', 'post', data)
export const deletePigPurchaseRecords = data => createAPI(`/admin/pigPurchaseRecords/${data.id}`, 'delete', data)
export const updatePigPurchaseRecords = data => createAPI('/admin/pigPurchaseRecords', 'put', data)
export const selectPigPurchaseRecords = data => createAPI('/admin/pigPurchaseRecords', 'get', data)
export const pigPurchaseRecordsNum=data =>createAPI('/admin/pigPurchaseRecordsNum',"get",data)
